package com.lzq.aopdemo.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Slf4j
@Aspect
@Component
@Order(3)
public class AspectDemo2 {
    @Before("com.lzq.aopdemo.aspect.AspectDemo1.pt()")
    public void doBefore2() {
        log.info("执行Before2方法");
    }

    @After("com.lzq.aopdemo.aspect.AspectDemo1.pt()")
    public void doAfter2() {
        log.info("执行After2方法");
    }
}
